<!--
 * @Author: CNN 969682281@qq.com
 * @Date: 2023-03-07 13:36:39
 * @LastEditors: CNN 969682281@qq.com
 * @LastEditTime: 2023-11-10 14:09:33
 * @FilePath: \newMould_BHZ\src\views\WaterManage\trends\instantly.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <!-- 水稳----动态监控---实时监控 -->
  <div class="department" id="department">
  
    <!-- 右侧 -->
    <div class="department_right">
     
      <!-- 顶部导航栏 -->
      <div class="mechanism_nav app-container-search">
        <!-- 左侧 -->
        <el-form ref="form" :model="getList" label-width="110px">
          <el-row :gutter="20">
            <el-col :span="6"><el-form-item label="项目名称：">
                <el-select class="selectBhz" v-model="getList.fprojectid" placeholder="所有项目" @change="selectProject">
                  <el-option v-for="v in projectsObj" :key="v.fItemName" :label="v.fItemName" :value="v.fItemValue">
                  </el-option>
                </el-select>
              </el-form-item></el-col>
            <el-col :span="6"><el-form-item label="标段名称：">
                <el-select class="selectBhz" v-model="getList.fCompanyid" placeholder="所有标段" @change="selectTender">
                  <el-option v-for="v in tendersObj" :key="v.fItemName" :label="v.fItemName" :value="v.fItemValue">
                  </el-option>
                </el-select>
              </el-form-item></el-col>

            <el-col :span="6">
              <el-form-item label="所有拌和站：">
                <el-select class="selectBhz" v-model="getList.stationId" placeholder="所有拌和站" @change="selectStation">
                  <el-option v-for="v in bhzDataList" :key="v.fItemName" :label="v.fItemName" :value="v.fItemValue">
                  </el-option>
                </el-select>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="所有拌和机：">
                <el-select class="selectBhz" v-model="getList.machineId" placeholder="所有拌和机">
                  <el-option v-for="v in bhjDataList" :key="v.fItemName" :label="v.fItemName" :value="v.fItemValue">
                  </el-option>
                </el-select>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row :gutter="20">
            <el-col :span="6">
              <el-form-item label="出料时间：">
                <el-date-picker :picker-options="pickerOptions" value-format="yyyy-MM-dd" @change="selectTime"
                  v-model="timeDuring" type="daterange" range-separator="至" start-placeholder="开始日期"
                  end-placeholder="结束日期">
                </el-date-picker>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="工程部位：">
                <el-select
            class="selectBhz"
           
            v-model="getList.buildPart"
            placeholder="工程部位"
            @change="yj_searchForm(getList)"
          >
            <el-option
              v-for="v in sgbwList"
              :key="v.fItemName"
              :label="v.fItemName"
              :value="v.fItemValue"
            >
            </el-option>
          </el-select>
              </el-form-item>
            </el-col>
         
            <el-col :span="6"><el-form-item label="预警等级：">
              <el-select
            class="selectCondition"
            v-model="getList.warningLevel"
            placeholder="预警等级"
            @change="yj_searchForm(getList)"
          >
            <el-option
              v-for="v in djDataList"
              :key="v.fItemName"
              :label="v.fItemName"
              :value="v.fItemValue"
            >
            </el-option>
          </el-select>
              </el-form-item></el-col>
            <el-col :span="6"><el-form-item label="闭合状态：">
              <el-select
            class="selectCondition"
            v-model="getList.fCloseoperation"
            placeholder="闭合状态"
            @change="yj_searchForm(getList)"
          >
            <el-option
              v-for="v in CloseoperationDataList"
              :key="v.fItemName"
              :label="v.fItemName"
              :value="v.fItemValue"
            >
            </el-option>
          </el-select>
              </el-form-item></el-col>
          </el-row>
          <div class="searchBtn">
            <el-button type="primary" :loading="editLoading" @click="yj_searchForm(getList)">查询</el-button>
            <el-button @click="reset">重置</el-button>
          </div>
        </el-form>
       
      </div>
      <div class="app-container-btn ">
        <el-button type="primary" @click="yj_viewForm">查看</el-button>
      </div>
      <!-- 表格 -->
      <div class="text_table TensionRealTime">
        <tableData :stripe="false" height="100%" :config="table_config" :dataList="tableData" :loading="listLoading"
          @selection-change="selectionChange" @sort-change="sortChange" @click-change="rowChange"
          :page="getList.page" :pageSize="getList.pageSize" />
        <pagination :info="queryCriteriaData" :total="queryCriteriaData.total" :pageNum.sync="getList.page"
          :limit.sync="getList.pageSize" @pagination="yj_searchForm(getList)" />
      </div>

      <messageBox :showMsgBox="showMsgBox" :msgTip="msgTip" :msgType="msgType" @confirmMsg="confirmMsg"></messageBox>
  
    </div>
  </div>
</template>

<script>
import messageBox from "@/components/public/messageBox"; //主页面分页

import TableData from "@/components/waterManage/public/el-tables"; //主页面列表
import Pagination from "@/components/public/el-pagination"; //主页面分页
import publicForm from "@/components/public/el-form.vue"; //弹框form
import actions from "@/actions";

import {
  getUserCompanyTreeList, //左侧机构树接口
  getWaterInfoLists, //主页面列表接口
  getWaterInfoByFid, //主页面列表详情接口
  getStationmachineList, //拌合站列表
  getMachineListByStationId, //拌合机
  getStationmachineByfMachineid, //查询-拌合站信息-详情接口
} from "@/api/request.js";
import { statusTypes } from "@/utils/config"; //配置项
export default {
  name: "instantly",
  components: {
   
    TableData, //主页面列表
    messageBox,
    publicForm, //弹框表格
    Pagination, //分页
   
  },
  data() {
    return {
      name: "instantly", //按钮配置页面代号
      pickerOptions: {
        disabledDate(time) {
          return time.getTime() > Date.now();
        },
      },
      showMsgBox: false,
      msgTip: "请先选中数据行！",
      msgType: 1,

      timeDuring: [], //主页面日期筛选绑定值

      rowInfo: null, //当前行信息
      projectsObj: [], //项目名
      tendersObj: [],
      falgId: null,
      editLoading: false,
      bhzDataList: [], //拌合站
      bhjDataList: [], //拌合机
      sgbwList: [{
        fItemName: "工程部位",
        fItemValue: "工程部位",
    },
    {
        fItemName: "基层",
        fItemValue: "基层",
    },
    {
        fItemName: "底基层",
        fItemValue: "底基层",
    },
    {
        fItemName: "垫层",
        fItemValue: "垫层",
    },
    {
        fItemName: "其他",
        fItemValue: "其他",
    },
    {
        fItemName: "下基层",
        fItemValue: "下基层",
    },
    ], //顶部下拉框---施工部位
      djDataList: [{
        fItemName: "预警级别",
        fItemValue: ""
    }, {
        fItemName: "正常",
        fItemValue: "0"
    }, {
        fItemName: "初级",
        fItemValue: "1"
    }, {
        fItemName: "中级",
        fItemValue: "2"
    }, {
        fItemName: "高级",
        fItemValue: "3"
    }], //预警级别
   

    CloseoperationDataList: [{
        fItemName: "闭合状态",
        fItemValue: ""
    }, {
        fItemName: "未闭合",
        fItemValue: "未闭合"
    }, {
        fItemName: "已闭合",
        fItemValue: "已闭合"
    }], //闭合状态
      formObj: [{
        input: true, //是input
        label: "施工标段", //字段
        prop: "fCompanyname", //字段名
        width: 12, //参考el-col
        disabled: true, //是否禁用
    }, {
        input: true, //是input
        label: "拌和站", //字段
        prop: "fStationname", //字段名
        width: 12, //参考el-col
        disabled: true, //是否禁用
    }, {
        input: true, //是input
        label: "拌和机", //字段
        prop: "fMachinename", //字段名
        width: 12, //参考el-col
        disabled: true, //是否禁用
    }, {
        input: true, //是input
        label: "工程部位", //字段
        prop: "fEngineeringpart", //字段名
        width: 12, //参考el-col
        disabled: true, //是否禁用
    },
    {
        input: true, //是input
        label: "实际产能(t/h)", //字段
        prop: "fActualcapacity", //字段名
        width: 12, //参考el-col
        disabled: true, //是否禁用
    },
    //  {
    //     input: true, //是input
    //     label: "施工部位", //字段
    //     prop: "fBuildpart", //字段名
    //     width: 12, //参考el-col
    //     disabled: true, //是否禁用
    // },
     {
        input: true, //是input
        label: "实际产量(t)", //字段
        prop: "fActualyield", //字段名
        width: 12, //参考el-col
        disabled: true, //是否禁用
    }, {
        input: true, //是input
        label: "开始时间", //字段
        prop: "fStartdates", //字段名
        width: 12, //参考el-col
        disabled: true, //是否禁用

    }, {
        input: true, //是input
        label: "结束时间", //字段
        prop: "fEnddates", //字段名
        width: 12, //参考el-col
        disabled: true, //是否禁用
    }], //新增编辑配置参数
      formData: {}, //新增编辑向后台传递对象
      navigatepageNums: null, //是否显示分页
      queryCriteriaData: {}, //分页
      value2: "", //主页面日期筛选绑定值
      xlsxName: null,

      // 列表配置项
      table_config: {
        // 列表配置项
        imgKeyWord: "url",
        fileKeyWord: "url",
        fileName: "fFileName",
        dialogHeight: '',
        thead: [{
            label: "标段名称",
            prop: "fCompanyname",
            minWidth: "100px",
            align: "left",
        },
        {
            label: "工程部位",
            prop: "fEngineeringpart",
            minWidth: "110px",
            align: "left",
        },
        // {
        //     label: "施工部位",
        //     prop: "fBuildpart",
        //     minWidth: "110px",
        //     align: "left",
        // },
        {
            label: "实际产能(t/h)",
            prop: "fActualcapacity",
            minWidth: "90px",
            align: "center",
        },
        {
            label: "实际产量(t)",
            prop: "fActualyield",
            minWidth: "90px",
            align: "center",
        },
        {
            label: '预警级别',
            prop: 'fWarninglevel',
            minWidth: '100px',
            filter: true,
            btn: true,
            align: "center",
            colorName: '',
        },
       
        {
            label: "开始时间",
            prop: "fStartdates",
            minWidth: "120px",
            align: "center",
        },
        {
            label: "结束时间",
            prop: "fEnddates",
            minWidth: "120px",
            align: "center",
        },
        {
            label: "上传时间",
            prop: "fCreatedates",
            minWidth: "120px",
            align: "center",
        },
        ],
        isCheckBox: false,
        isIndex: true,
        isOperation: true,
        // 表格操作列
        operation: {
            label: "操作",
            width: "100",
            detail: true,
            cols: [],
        },
    },
      tableData: [], //表格列表数据列表
      tableDatas: [], //导出所有数据
      level: [],
      earlyWarning: [], //预警标准
      material_config:  {
        // 列表配置项
        imgKeyWord: "url",
        fileKeyWord: "url",
        fileName: "fFileName",
        dialogHeight: "",
        thead: [{
            label: "标段名称",
            prop: "fCompanyname",
            minWidth: "100px",
            align: "left",
        },
        {
            label: "工程部位",
            prop: "fEngineeringpart",
            minWidth: "110px",
            align: "left",
        },
        // {
        //     label: "施工部位",
        //     prop: "fBuildpart",
        //     minWidth: "110px",
        //     align: "left",
        // },
        {
            label: "实际产能(t/h)",
            prop: "fActualcapacity",
            minWidth: "90px",
            align: "center",
        },
        {
            label: "实际产量(t)",
            prop: "fActualyield",
            minWidth: "90px",
            align: "center",
        },
        {
            label: '预警级别',
            prop: 'fWarninglevel',
            minWidth: '100px',
            filter: true,
            btn: true,
            align: "center",
            colorName: '',
        },

        {
            label: "开始时间",
            prop: "fStartdates",
            minWidth: "120px",
            align: "center",
        },
        {
            label: "结束时间",
            prop: "fEnddates",
            minWidth: "120px",
            align: "center",
        },
        {
            label: '闭合状态',
            prop: 'fClosestatus',
            minWidth: '80px',
            align: "center"
        },
        ],
        isCheckBox: false,
        isIndex: true,
        isOperation: true,
        // 表格操作列
        operation: {
            label: '闭合操作',
            width: '100',
            detail: true,
            prop: true,
            cols: [],

        },
    }, //材料配置项
      materialData: [], //材料用量列表
      highlightBd: true, //左侧机构树停留背景色
      treelength: false, //左侧树显示隐藏
      checked: true, //查看下级按钮
      showName: "未选择公司",
      dialogHeight: "470px", //弹框高度
      fId: null, //点击当前列表数据fId
      listLoading: false, //列表数据加载loading
      loadingEditDialog: false, //弹框loading
      dialogEditVisible: false, //新增弹框是否显示
      // 列表给后端传参
      getList: {
        fCompanyid: "", // 施工标段id，不为空
        startDates: "", // 开始时间
        endDates: "", // 截至时间
        stationId: "", // 拌合站id
        machineId: "", // 拌合机id
        buildPart: "", // 施工部位
        warningLevel: "",
        fCloseoperation: "",
        page: 1, // 当前页数
        pageSize: 15, // 每页显示条数
      },
      companyTree: "", //所有数据

      // 左侧机构树
      treeData: [], //左侧树状图数据
      defaultProps: {
        children: "children",
        label: "fShortname",
      },
      checkData: [],
      userInfo: {}, //登录用户
      treeText: {
        //树状图参数
        companyId: null,
        text: null,
        userId: null,
      },
    };
  },

  mounted() {
    actions.onGlobalStateChange((state, prev) => {
      this.userInfo = prev.currentUser;
      this.token = prev.token;
      var data = prev.currentUser.projects;
      this.projectsObj = [
        {
          fItemName: "所有项目",
          fItemValue: "",
        },
      ];
      data.map((item) => {
        this.projectsObj.push({
          fItemName: item.projectName,
          fItemValue: item.projectId,
        });
      });
    }, true);
    this.getDate();
    // this.btnRole(this.name);
    this.table_config.thead[4]["callback"] = function (rowData) {
      let data = statusTypes[rowData.fWarninglevel];
      if (data) {
        return data.label;
      }
    };
    this.table_config.thead[4]["specialClass"] = function (rowData) {
      let data = statusTypes[rowData.fWarninglevel];
      if (data) {
        return data.className;
      }
    };

    // this.table_config.operation.cols = [
    //   {
    //     label: "查看",
    //     type: "primary",
    //     handleRow: this.handleRow,
    //   },
    // ];
  },
  methods: {
    confirmMsg() {
      this.showMsgBox = false;
    },
    // 点击当前行
    rowChange(val) {
      this.rowInfo = val;
    },
    selectProject(e) {
      this.falgId = e;
      this.tendersObj = [];
      this.bhzDataList = [];
      this.getList.fCompanyid = "";
      this.getList.stationId = "";
      this.getList.machineId = "";
      this.bhjDataList = [];
      // console.log(e);
      this.getTender(e);
    },
    async getTender(e) {
      await this.$http(
        " http://172.18.5.31:8300/IOTManagement/Base/Company/getGXJLBaseCompanyList.do?projectId=" +
          e,
        {
          headers: {
            "Content-Type": "application/json",
            Authorization: localStorage.getItem("access_token"),
          },
        }
      ).then((res) => {
        if (res.status == 200) {
          var data = res.data.data.GXCompanyList;
          this.tendersObj = [];
          if (data.length == 0) {
                        this.$message.warning({
                            content: "有其他人员登录此账号！",
                            duration: 1000,
                        });
                        setTimeout(() => {
                            window.location.href = "http://172.18.5.201:1080/login";
                        }, 1200);
                    } else   if (data.length == 1) {
            data.map((item) => {
              this.tendersObj.push({
                fItemName: item.sectionName,
                fItemValue: item.sectionId,
              });
            });
            this.falgId = data[0].sectionId;

            this.getList.fCompanyid = data[0].sectionId;
          } else {
            this.tendersObj = [
              {
                fItemName: "所有标段",
                fItemValue: "",
              },
            ];
            data.map((item) => {
              this.tendersObj.push({
                fItemName: item.sectionName,
                fItemValue: item.sectionId,
              });
            });
          }
        }
      });
    },
    selectTender(e) {
      this.falgId = e;
      this.getList.stationId = "";
      this.getList.machineId = "";
      this.bhjDataList = [];
      this.bhzDataList = [];
      this.mixingPlantList(0, this.getList);
    },
    selectStation(e) {
      this.getList.machineId = "";
      this.bhjDataList = [];
      this.getbhjDataMethods(e, 4);
    },
    // 重置按钮
    reset() {
      this.timeDuring = [];
      this.getList = {
        fprojectid: "",
        fCompanyid: "", // 施工标段id，不为空
        startDates: "", // 开始时间
        endDates: "", // 截至时间
        stationId: "", // 拌合站id
        machineId: "", // 拌合机id
        buildPart: "", // 施工部位
        warningLevel: "",
        fCloseoperation: "",
        page: "", // 当前页数
        pageSize: "", // 每页显示条数
      };
    },
    selectBhzFun(e) {
      this.getList.machineId = "";
      this.getbhjDataMethods(e);
    },

    getbhjDataMethods(data) {
      getMachineListByStationId({ stationId: data })
        .then((res) => {
          if (res.errcode == 0) {
            var arr = res.data.stationmachineList;
            this.bhjDataList = [
              {
                fItemName: "所有拌和机",
                fItemValue: "",
              },
            ];
            arr.map((item) => {
              this.bhjDataList.push({
                fItemName: item.fMachinename,
                fItemValue: item.fMachineid,
              });
            });
          } else {
            this.$message.error(res.msg);
            return false;
          }
        })
        .catch((error) => {
          console.log(error);
        });
    },

    // 获取列表数据
    yj_searchForm(data) {
      this.listLoading = true;
      if (this.getList.buildPart == "施工部位") {
        data.buildPart = "";
      }
      if (this.getList.machineId == "所有拌合机") {
        data.machineId = "";
      }

      window.sessionStorage.setItem(
        "GxEmbedded_waterManage_getLists",
        JSON.stringify(data)
      );
      var id;
      if(data.fCompanyid!=''){
        id=data.fCompanyid
      }else {
        id=data.fprojectid
      }
      var sc = {
        fCompanyid: id, // 施工标段id，不为空
        startDates: data.startDates, // 开始时间
        endDates: data.endDates, // 截至时间
        stationId: data.stationId, // 拌合站id
        machineId: data.machineId, // 拌合机id
        warningLevel: data.warningLevel,
        fCloseoperation: data.fCloseoperation,
        buildPart: data.buildPart, // 施工部位
        page: data.page, // 当前页数
        pageSize: data.pageSize, // 每页显示条数
      };
      getWaterInfoLists(sc)
        .then((res) => {
          if (res.errcode == 0) {
            var that = this;
            that.listLoading = false;
            that.tableData = res.data.pageInfo.list;
            that.queryCriteriaData = res.data.pageInfo; //分页信息
            that.navigatepageNums =
              that.queryCriteriaData.navigatepageNums.length;
          } else {
            this.$message.error("获取 列表数据失败", res.msg);
            this.listLoading = false;
          }
        })
        .catch((error) => {
          this.$message.error("获取列表数据 接口报错", error.msg);
          this.listLoading = false;
        });
    },
    // 获取骨料名
    getGlName(data) {
      getStationmachineByfMachineid({ machineId: data })
        .then((res1) => {
          if (res1.errcode == 0) {
            this.material_config.thead[3].label =
              res1.data.yjQmpMsStationmachine.fParm1;
            this.material_config.thead[4].label =
              res1.data.yjQmpMsStationmachine.fParm2;
            this.material_config.thead[5].label =
              res1.data.yjQmpMsStationmachine.fParm3;
            this.material_config.thead[6].label =
              res1.data.yjQmpMsStationmachine.fParm4;
            this.material_config.thead[7].label =
              res1.data.yjQmpMsStationmachine.fParm5;
            this.material_config.thead[8].label =
              res1.data.yjQmpMsStationmachine.fParm6;
          } else {
            this.$message.error("获取骨料名", res1.msg);
          }
        })
        .catch((error) => {
          console.log("获取骨料名接口报错", error.msg);
        });
    },
    // 查看
    yj_viewForm(row) {
      if (this.rowInfo != null) {
        this.$router.push({
          path: "/WaterManage/waterInstantlyDetail",
          query: {
            data: JSON.stringify(this.rowInfo),
            // fCompanyid: this.falgId
            // fCompanyid: this.getList.fCompanyid

          },
        })
      } else {


        this.showMsgBox = true
      }
    },

    // 获取拌合站数据
    mixingPlantList(num, datas) {
      var data = {
        companyId: datas.fCompanyid, // 施工标段id
        modelType: num, // 类型
        stationType: "2", // 拌合站类型 1砼，2水稳，3沥青
      };
      getStationmachineList(data)
        .then((res) => {
          if (res.errcode == 0) {
            var arr = res.data.stationmachineList;

            this.bhzDataList = [
              {
                fItemName: "所有拌合站",
                fItemValue: "",
              },
            ];

            arr.map((item) => {
              this.bhzDataList.push({
                fItemName: item.fMachinename,
                fItemValue: item.fMachineid,
              });
            });
          } else {
            this.$message.error(res.msg);
            return false;
          }
        })
        .catch((error) => {
          this.$message.error(error.msg);
        });
    },

    // 时间间隔
    // selectTime(e) {
    //   this.getList.startDates = e[0] + " " + "00:00:00"; // 开始时间
    //   this.getList.endDates = e[1] + " " + "23:59:59"; // 截至时间
    //   this.xlsxName = e[0] + "至" + e[1] + "水稳拌和站记录数据";

    //   this.yj_searchForm(this.getList);
    // },
    selectTime(e) {
      if (e[0] != "" && e[1] != "") {
        this.getList.startDates = e[0] + " " + "00:00:00"; // 开始时间
        this.getList.endDates = e[1] + " " + "23:59:59"; // 截至时间
        this.xlsxName = e[0] + "至" + e[1] + "混凝土拌和站记录数据";
      } else {
        this.getList.startDates = ""; // 开始时间
        this.getList.endDates = ""; // 截至时间
        this.xlsxName = "混凝土拌和站记录数据";
      }
      // this.yj_searchForm(this.getList);
    },

    getDate() {
      if (JSON.parse(sessionStorage.getItem("GxEmbedded_waterManage_getLists"))) {
        var getListStorage = JSON.parse(
          sessionStorage.getItem("GxEmbedded_waterManage_getLists")
        );
        this.getList = getListStorage;
        this.getList.page=1 // 当前页码
        this.getList.pageSize=15 // 每页显示条数
        if (getListStorage.fprojectid != "") {
          this.getTender(getListStorage.fprojectid);
          this.falgId = getListStorage.fprojectid;
        }
        if (
          getListStorage.fCompanyid != "" &&
          getListStorage.fCompanyid != null
        ) {
          this.falgId = getListStorage.fCompanyid;

          this.mixingPlantList(0, getListStorage);
        }

        if (
          getListStorage.stationId != "" &&
          getListStorage.stationId != null
        ) {
          this.getbhjDataMethods(getListStorage.stationId);
        }
        this.yj_searchForm(this.getList);
        this.timeDuring = [this.getList.startDates, this.getList.endDates];
        this.xlsxName =
          this.getList.startDates +
          "至" +
          this.getList.endDates +
          "水稳拌和站记录数据";
      } else {
        this.getList.startDates = this.common.getDay(-90) + " " + "00:00:00"; // 开始时间
        this.getList.endDates = this.common.getDay(0) + " " + "23:59:59"; // 截至时间
        this.getList.fprojectid = this.projectsObj[1].fItemValue;

        this.getTender(this.getList.fprojectid);
        this.xlsxName =
          this.common.getDay(-90) +
          "至" +
          this.common.getDay(0) +
          " " +
          "23:59:59" +
          "水稳拌和站记录数据";

        this.timeDuring = [
          this.common.getDay(-90) + " " + "00:00:00",
          this.common.getDay(0) + " " + "23:59:59",
        ];
        this.yj_searchForm(this.getList);
      }
      console.log(66, this.timeDuring);
    },
    // 获取页面容器高度
    getHeight() {
      // var h = document.documentElement.clientHeight; //获取页面可见高度
      // this.dialogHeight = h * 0.50 + "px";
    },
    // 多选方法
    selectionChange() {},
    // 排序方法
    sortChange() {},
  },
};
</script>


<style scoped>
.TensionRealTime {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.printTables {
  background: #fff;
  display: flex;
  justify-content: end;
  padding: 5px;
  margin-top: 10px;
}

.dialogBody {
  padding: 3px 20px;
  height: 80%;
  overflow-y: auto;
}

.baseTitle {
  border-bottom: 1px solid #0c204d;
  height: 30px;
  line-height: 30px;
  position: relative;
  padding-left: 15px;
}

.baseTitle::after {
  display: block;
  content: "";
  height: 30px;
  width: 5px;
  position: absolute;
  left: 0;
  top: 0;
  background: #0c204d;
}

.materialClass /deep/.el-table tr:nth-child(5) {
  display: none;
}
</style>
